package com.gistone.commis.mapper;

import com.gistone.commis.entity.Community;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommunityMapper {

    @Select("SELECT * FROM tb_community")
    List<Community> findCommunitys();
    int deleteByPrimaryKey(Integer communityId);

    int insert(Community record);

    int insertSelective(Community record);

    Community selectByPrimaryKey(Integer communityId);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKey(Community record);

    List<Community> selectSelective(Community community);

    @Select("SELECT * FROM tb_community where is_delete = 0 and community_id != 1 ")
    List<Community> selectCommunitysWithout1();
}